const Router = require('@koa/router');
const fun = require('../controller/admin/basic_material_type.controller');
const config = require('../config');

const router = new Router({ prefix: `${config.ADMIN_PREFIX_V2}/basic_material_type` });
// 物料类别管理
router.post('/create', fun.createMaterialType); // 创建物料类别
router.post('/delete', fun.deleteMaterialTypes); // 删除物料类别
router.post('/update', fun.updateMaterialType); // 更新物料类别
router.get('/list', fun.getMaterialTypeList); // 查询物料类别列表
router.post('/update-state', fun.updateMaterialTypeState); // 修改物料类别状态
router.post('/batch-create', fun.batchCreateMaterialType); // 批量新增子分类
router.get('/cascade', fun.getMaterialTypeCascade); // 获取级联下拉框数据
module.exports = router;
